export const lib:any = {};

WebAssembly.instantiateStreaming(
  fetch(`${process.env.PUBLIC_URL}/release.wasm`),
  {
    "env": {
      abort() {
        console.error('abort from wasm')
      }
    },
    "utils": {
      callback(r: number) {
        console.log('callback: ', r);
      }
    }
  }
).then(wasmModule => {
  console.log('initial result: ', wasmModule);
  lib.exFunction = wasmModule?.instance?.exports;
});





/**
 * file utils.ts
 * 
 * export declare function callback(t: u32): void;
 */
